package test

import (
	"awesome/model"
	"fmt"
)

func main() {
	//小学生
	pupil := &model.Pupil{}
	pupil.Student.Name = "Tom"
	pupil.Student.Age = 10
	pupil.Testing()
	pupil.Student.SetScores(80)
	pupil.Student.GetAll()
	//大学生
	fmt.Println("----------------------------------")
	graduate := &model.Pupil{}
	graduate.Student.Name = "Bill"
	graduate.Student.Age = 21
	graduate.Testing()
	graduate.Student.SetScores(90)
	graduate.Student.GetAll()
	fmt.Println("------------------------------")

	//小学生
	pupil1 := &model.Pupil{}
	pupil1.Name = "Tom"
	pupil1.Student.Name = "Bill"
	pupil1.Age = 10
	pupil1.Testing()
	pupil1.SetScores(80)
	pupil1.GetAll()
}
